<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>商品详情界面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        h1 {
            text-align: center;
            color: #333;
            margin-top: 50px;
        }
        .product-info {
            width: 80%;
            margin: 30px auto;
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        .product-info img {
            display: block;
            margin: 0 auto;
            max-width: 100%;
            height: auto;
        }
        .product-info p {
            margin: 10px 0;
            line-height: 1.5;
        }
        .product-info a {
            display: inline-block;
            padding: 10px 20px;
            background-color: #007BFF;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
            margin-right: 10px;
        }
        .product-info a:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
<div class="product-info">
    <h1>商品详情界面</h1>
    <img src="${product.url}" alt=""><br><br>
    商品名称: ${product.productName}<br><br>
    商品描述: ${product.description} <br><br>
    商品库存: ${product.stock} <br><br>
    商品价格: ${product.price}<br><br>
<%-- 默认就购买一个   --%>
    <a href="">加入购物车</a> &nbsp;&nbsp;&nbsp;<a href="/order/buy?productId=${product.id}">购买</a>
</div>
</body>
</html>